//卷组列表
(function($){
    $(function(){
        var resizePage = (function () {
            $("body , .volume-list-page").height($(window).height());
            var ww = $(window).width(),
                wh = $("body").innerHeight(),
                searchH = $(".search-panel").outerHeight(true),
                footerH = $(".table-footer").outerHeight(true),
                ulHeaderH = $(".ul_head").outerHeight(true),
                topFootH = $(".pop-foot").outerHeight(true),
                $topUlBody = $(".top_ul_body"),
                $ulBody = $(".ul_body");

            $ulBody.height(wh - searchH - footerH - ulHeaderH);
            //$topUlBody.height(wh - searchH - topFootH - ulHeaderH);
            return arguments.callee;
        })();
        $(window).resize(resizePage);
        
        var top = window.parent.parent;
        
        //搜索栏相关操作
        $(".search-panel")
        	//创建卷组
        	.on("click",".create-volume",function(){
        		top.$.popShow("pages/volumeManage/create_volume.html");
        	})
        	
        
        //列表内相关操作
        $(".table")
        	//创建快照
        	.on("click",".create-photo",function(e){
        		e.stopPropagation();
        		top.$.popShow("pages/volumeManage/create_photo.html");
        	})

        //调用animateTip插件
        $(".undel-icon").animateTip({
        	my:"center+12 top+4",
            at:"center bottom"
        });
		
		//挂载按钮 挂载飞出层飞出
        $(".li_tr")
            .on("click",".mount-volume",function () {
                window.parent.$(".mount-manage").fadeIn(600);
            })

        //点关闭按钮挂载飞出层关闭
        window.parent.$(".mount-manage-panel")
        //关闭管理规则
            .on("click",".close-pop",function(){
                window.parent.$(".mount-manage").fadeOut(600);
            })
    })
})(jQuery)